[2014-08-04 04:33:52,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:33:55,805]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:33:55,809]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:33:58,809]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:33:58,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:01,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:04,817]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:07,821]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:10,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:13,830]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:16,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:19,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:22,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:22,838]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:34:25,842]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:28,846]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:28,847]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:34:31,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:34,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:37,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:37,859]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:34:40,866]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:43,867]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:46,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:49,884]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:52,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:55,894]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:34:58,896]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:01,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:04,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:07,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:10,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:13,919]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:16,925]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:19,931]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:22,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:25,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:28,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:31,951]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:34,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:37,961]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:40,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:43,970]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:35:43,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:46,975]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:49,978]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:49,979]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:35:52,983]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:35:52,984]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:55,986]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:35:58,991]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:35:58,991]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:01,997]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:04,999]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:08,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:11,011]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:14,020]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:17,024]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:20,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:23,032]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:23,032]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:36:26,036]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:36:26,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:29,040]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:29,040]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:36:32,046]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:35,048]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:35,048]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:36:38,056]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:41,061]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:44,065]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:44,065]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:36:47,070]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:50,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:50,073]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:36:53,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:56,085]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:36:59,086]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:36:59,092]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:02,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:02,090]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:37:05,094]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:37:05,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:08,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:11,102]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:14,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:17,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:20,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:23,123]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:26,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:29,131]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:32,135]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:32,136]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:37:35,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:35,143]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:37:38,150]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:37:41,152]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:37:47,152]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:37:59,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:02,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:05,173]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:08,177]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:38:08,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:11,181]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:14,185]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:14,186]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:38:17,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:20,193]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:23,198]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:38:23,199]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:26,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:29,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:32,220]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:35,222]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:38,228]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:41,230]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:44,241]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:47,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:50,249]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:53,251]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:56,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:38:59,263]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:02,272]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:05,276]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:39:05,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:08,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:11,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:11,285]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:39:14,288]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:39:14,297]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:17,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:20,304]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:23,308]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:26,312]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:29,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:32,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:35,325]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:38,329]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:38,329]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:39:41,333]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:44,337]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:39:44,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:47,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:47,343]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:39:50,348]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:53,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:56,360]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:39:59,362]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:02,374]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:05,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:08,383]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:11,387]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:11,387]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca10 {id=MavenRepoPurge_Tcagent10, internal id=bt1085}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:14,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:17,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:17,396]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:40:20,399]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:23,403]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:26,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:26,407]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:40:29,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:29,412]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:40:32,416]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:35,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:38,424]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:38,425]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration TEST BUILDS :: Silvercore :: QA test builds :: LABQA {id=Silvercore_QaTestBuilds_LabqaCopyMetarunner, internal id=bt1140}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:41,429]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:44,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:47,436]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:50,442]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:53,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:56,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:59,453]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:40:59,454]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca05 {id=bt211, internal id=bt211}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:02,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:05,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:08,468]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:11,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:14,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:17,482]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:20,493]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:23,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:26,508]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:29,510]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:32,518]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:35,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:38,529]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:41,531]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:44,535]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca09 {id=MavenRepoPurge_Tca09, internal id=bt1001}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:44,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:47,543]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:41:47,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:50,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:53,552]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:56,556]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:41:56,556]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:41:59,560]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:41:59,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:02,564]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:02,565]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:42:05,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:08,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:08,572]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:42:11,577]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:42:11,588]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:14,592]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:14,594]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca11 {id=MavenRepoPurge_UtlTca11, internal id=bt1182}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:17,597]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:20,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:20,601]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:42:23,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:26,617]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:26,617]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:42:29,621]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:42:29,622]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:32,627]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:35,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:38,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:38,634]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:42:41,638]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:42:41,657]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:44,642]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:47,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:47,648]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:42:50,654]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:53,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:56,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:42:59,667]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:02,672]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:05,675]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:05,675]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca07 {id=bt409, internal id=bt409}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:08,680]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:11,683]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:11,685]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Maven Repo Purge :: utl-tca06 {id=bt408, internal id=bt408}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:14,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:17,695]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:17,696]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:43:20,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:20,700]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:43:23,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:26,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:29,712]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:29,712]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:43:32,716]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:32,716]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:43:35,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:38,724]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:38,726]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:43:41,730]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:44,733]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:47,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:47,737]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:43:50,741]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:43:50,751]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:53,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:56,766]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration TEST BUILDS :: Silvercore :: PROD test builds :: LABPROD {id=Silvercore_ProdTestBuilds_LabprodCopyMetarunner, internal id=bt1358}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:56,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:43:59,769]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:02,774]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:02,774]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:44:05,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:08,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:11,786]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:11,786]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:44:14,790]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:44:14,791]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:17,794]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:20,798]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:20,799]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:44:23,803]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:26,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:26,811]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:44:29,815]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:32,819]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:32,819]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:44:35,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:38,828]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:44:38,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:41,831]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:41,832]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:44:44,837]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:47,840]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:50,845]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:53,848]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:56,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:44:59,856]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:02,863]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:05,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:08,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:11,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:14,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:17,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:20,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:23,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:26,900]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:29,902]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:32,908]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:35,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:38,921]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:41,926]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:44,930]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:44,931]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:45:47,934]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:50,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:50,940]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:45:53,943]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:56,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:59,951]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:45:59,953]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:46:02,958]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:05,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:05,960]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:46:08,964]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:08,964]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:46:11,968]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:46:11,969]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:14,974]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:17,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:20,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:23,992]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:26,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:30,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:33,005]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:36,009]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:39,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:46:42,022]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:46:48,022]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:46:51,022]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:46:57,030]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:47:00,034]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:00,034]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:47:03,048]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:06,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:06,052]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:47:09,059]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:12,072]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:15,076]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:18,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:21,084]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:24,087]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:27,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:30,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:33,102]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:36,104]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:39,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:42,112]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:45,118]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:48,120]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:51,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:54,129]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:47:57,135]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:00,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:03,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:06,145]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:09,151]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:12,153]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:15,162]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:48:15,165]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:18,170]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:18,171]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:48:21,174]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:48:21,175]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:24,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:27,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:27,182]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:48:30,186]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:33,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:36,196]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:39,199]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:48:39,200]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:42,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:45,207]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:45,208]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:48:48,211]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:48:48,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:51,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:54,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:48:57,223]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:00,228]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:03,228]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:06,232]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:09,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:12,242]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:15,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:18,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:18,250]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:49:21,253]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:24,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:24,257]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:49:27,261]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:30,265]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:30,265]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:49:33,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:36,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:39,278]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:39,278]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:49:42,282]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:45,286]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:49:45,287]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:48,290]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:48,290]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:49:51,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:54,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:49:57,310]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:00,316]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:03,319]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:03,319]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:50:06,323]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:09,327]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:09,328]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:50:12,331]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:15,335]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:18,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:21,343]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:21,344]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:50:24,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:27,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:30,356]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:33,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:36,368]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:39,374]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:42,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:45,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:48,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:51,391]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:54,393]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:50:57,399]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:00,401]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:03,408]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:06,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:09,414]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:51:09,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:12,431]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:15,434]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:51:15,436]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:18,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:21,442]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:51:21,443]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:24,447]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:51:24,448]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:27,451]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:30,455]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:51:30,456]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:33,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:36,463]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:39,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:42,475]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:45,484]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:48,488]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:51,495]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:54,500]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:51:57,506]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:00,508]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:03,524]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:06,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:09,538]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:12,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:15,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:18,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:21,555]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:24,557]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:27,563]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:30,566]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:33,571]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:36,574]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:39,580]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:42,584]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:45,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:48,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:51,597]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:54,599]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:52:57,604]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:00,607]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:03,614]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:06,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:09,628]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:12,632]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:53:12,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:15,636]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:18,640]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:18,640]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:53:21,645]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:24,648]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:24,649]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:53:27,653]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:30,656]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:33,661]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:36,665]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:39,669]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:42,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:45,677]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:48,677]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:51,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:54,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:57,690]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:53:57,690]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:54:00,696]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:03,701]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:06,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:09,718]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:54:09,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:12,724]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:15,727]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:15,727]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:54:18,731]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:21,735]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:24,740]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:27,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:30,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:30,749]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:54:33,751]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:36,756]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:39,760]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:42,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:45,768]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:48,772]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:51,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:54,780]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:54:57,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:00,789]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:00,789]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:55:03,793]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:03,793]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:55:06,799]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:09,801]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:12,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:15,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:18,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:21,824]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:24,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:27,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:30,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:33,840]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:36,842]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:39,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:42,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:45,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:45,859]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:55:48,863]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:55:48,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:51,867]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:51,867]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:55:54,871]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:55:57,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:00,880]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:00,880]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:56:03,884]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:06,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:09,896]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:12,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:15,907]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:18,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:21,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:24,925]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:27,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:39,942]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:56:42,942]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:56:48,950]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:51,954]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:54,960]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:56:57,964]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:00,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:03,972]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:06,975]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:09,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:12,983]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:15,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:18,991]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:21,997]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:25,000]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:28,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:31,012]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:34,017]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:37,020]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:40,027]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:43,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:46,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:49,041]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:57:49,042]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:52,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:55,049]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:57:55,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:57:58,053]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:57:58,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:01,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:04,062]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:04,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:07,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:10,070]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:10,070]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:13,074]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:58:13,075]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:16,078]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:19,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:22,086]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 04:58:22,087]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:25,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:25,092]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:28,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:31,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:31,099]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:58:34,103]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:34,103]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:37,107]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:40,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:43,115]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:43,116]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:46,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:49,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:52,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:55,136]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 04:58:55,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:58,140]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:58:58,140]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 04:59:01,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:04,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:07,158]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:10,168]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:13,173]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:16,183]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:19,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:22,195]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:25,197]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:28,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:31,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:34,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:37,218]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:40,224]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:43,226]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:46,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:49,234]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:52,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:55,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 04:59:58,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:01,251]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:04,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:07,259]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:10,265]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:13,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:16,278]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:19,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:22,284]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:00:22,293]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:25,296]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:28,300]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:00:28,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:31,304]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:34,309]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:37,313]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:37,313]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:00:40,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:43,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:43,321]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:00:46,325]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:00:46,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:49,329]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:49,329]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:00:52,333]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:55,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:58,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:00:58,342]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:01:01,346]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:04,351]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:07,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:07,355]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:01:10,361]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:13,362]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:13,363]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:01:16,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:16,367]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:01:19,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:22,375]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:22,375]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:01:25,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:28,383]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:28,383]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:01:31,387]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:34,391]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:34,392]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:01:37,396]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Temporary tests :: Test SVN checkout {id=Maintenance_TemporaryTests_TestSvnCheckout, internal id=bt1193}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:37,398]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:40,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:40,401]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration ANORAK Trunk Test builds :: Anorak - DB Nightly {id=bt495, internal id=bt495}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:43,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:46,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:49,412]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:52,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:55,420]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:01:58,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:01,437]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:02:19,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:22,455]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:25,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:25,458]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:02:28,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:31,466]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:34,470]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:37,474]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:37,474]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:02:40,479]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:02:40,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:43,483]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:46,487]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:02:46,488]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:49,492]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:52,501]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:55,503]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:02:55,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:58,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:02:58,529]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:03:01,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:04,536]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:07,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:10,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:13,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:16,558]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:19,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:22,566]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:25,569]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:28,576]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:31,577]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:34,581]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:37,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:40,590]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:03:40,591]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:43,594]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:03:43,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:46,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:49,610]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:03:49,611]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:52,616]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:55,618]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:03:55,619]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:03:58,624]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:01,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:04,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:07,655]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:10,655]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:13,659]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:16,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:19,667]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:19,669]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:04:22,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:25,677]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:28,680]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:28,680]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:04:31,685]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:34,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:34,689]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:04:37,692]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:40,696]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:40,696]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:04:43,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:46,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:49,709]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:49,709]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:04:52,713]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:04:52,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:55,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:04:58,721]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:05:04,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:07,729]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:10,735]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:13,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:16,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:19,746]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:22,753]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:25,754]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:28,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:31,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:34,772]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:37,775]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:05:37,787]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:40,779]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:05:40,780]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:43,783]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:43,784]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:05:46,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:49,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:52,796]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:52,796]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:05:55,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:05:58,804]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:01,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:10,813]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:06:13,813]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:06:22,821]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:25,825]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:28,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:31,833]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:34,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:37,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:40,842]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:40,842]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:06:43,846]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:06:43,858]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:46,862]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:49,866]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:49,867]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:06:52,870]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:55,875]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:06:55,876]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:06:58,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:01,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:01,883]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:07:04,891]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:07,895]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:10,899]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:10,899]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:07:13,904]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:07:13,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:16,908]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:19,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:22,919]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:31,924]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:31,925]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:07:34,928]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:34,928]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:07:37,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:37,933]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:07:40,937]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:43,941]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:46,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:46,945]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:07:49,949]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:49,950]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:07:52,956]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:55,957]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:07:58,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:01,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:04,978]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:07,982]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:08:07,983]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:10,986]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:08:10,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:13,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:16,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:20,000]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:23,004]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:26,007]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:29,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:32,015]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:35,022]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:38,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:41,030]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:44,032]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:47,039]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:50,044]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:53,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:56,052]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:08:59,061]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:02,061]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:05,067]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:08,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:11,075]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:14,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:17,087]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:20,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:23,098]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:09:23,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:26,114]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:29,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:32,122]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:32,122]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:09:35,126]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:09:35,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:38,130]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:38,132]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:09:41,135]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:44,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:44,139]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:09:47,145]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:50,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:53,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:56,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:09:59,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:02,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:05,170]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:08,176]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:11,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:14,184]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:17,188]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:20,199]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:23,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:26,204]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:29,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:32,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:35,218]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:38,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:41,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:44,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:47,235]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:50,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:53,247]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:56,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:10:59,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:02,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:05,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:08,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:11,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:14,279]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:17,286]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:20,291]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:23,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:26,304]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:11:26,315]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:29,307]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:32,312]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:35,316]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:35,316]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:11:38,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:41,324]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:41,326]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:11:44,328]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:44,328]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:11:47,332]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:50,336]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:53,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:56,345]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:11:59,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:02,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:05,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:08,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:11,362]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:14,367]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:17,370]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:17,371]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:12:20,375]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:23,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:26,382]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:26,382]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:12:29,386]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:12:29,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:32,398]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:35,403]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:38,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:38,408]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:12:41,415]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:44,419]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:47,424]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:50,427]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:53,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:56,436]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:12:59,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:02,444]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:05,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:08,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:11,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:14,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:17,470]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:20,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:23,478]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:26,481]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:29,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:32,489]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:35,495]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:38,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:41,505]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:44,510]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:47,514]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:13:47,515]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:50,518]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:53,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:56,530]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:59,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:13:59,535]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:14:02,539]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:14:02,540]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:05,543]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:14:05,555]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:08,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:11,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:14,559]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:17,565]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:20,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:23,574]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:26,576]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:29,582]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:32,584]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:35,596]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:38,600]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:41,609]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:44,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:44,613]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:14:47,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:50,621]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:53,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:53,625]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:14:56,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:14:56,629]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:14:59,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:02,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:05,643]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:08,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:08,646]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:15:11,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:14,654]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:14,654]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:15:17,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:20,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:23,667]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:26,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:26,672]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:15:29,675]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:32,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:35,683]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:35,683]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:15:38,687]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:38,689]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:15:41,692]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:44,695]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:47,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:47,700]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:15:50,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:53,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:53,708]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:15:56,712]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:15:56,713]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:15:59,717]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:02,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:02,722]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:05,725]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:08,729]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:08,729]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:16:11,733]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:11,734]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:14,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:17,742]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:20,745]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:20,746]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:16:23,750]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:26,754]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:26,754]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:29,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:32,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:32,762]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:35,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:35,766]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:16:38,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:41,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:44,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:47,786]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:47,787]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:50,791]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:53,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:53,795]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:16:56,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:59,803]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:16:59,803]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:17:02,807]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:17:02,820]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:05,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:08,828]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:08,828]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:17:11,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:14,836]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:14,837]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:17:17,841]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:20,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:20,845]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:17:23,848]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:26,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:26,854]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:17:29,856]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:29,857]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:17:38,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:41,869]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:44,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:47,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:50,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:53,882]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:53,882]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:17:56,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:59,890]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:17:59,890]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:18:02,897]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:05,898]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:05,898]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:18:08,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:11,906]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:14,915]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:17,920]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:20,923]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:23,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:26,935]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:29,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:32,943]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:35,948]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:38,948]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:41,952]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:44,956]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:47,956]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:50,960]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:53,965]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:56,969]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:18:56,970]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:18:59,973]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:18:59,974]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:02,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:05,981]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:05,981]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:19:08,986]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:11,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:11,991]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:19:14,993]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:17,998]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:21,002]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:24,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:27,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:30,014]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:33,020]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:36,022]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:36,023]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:19:39,027]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:42,031]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:42,031]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:19:45,035]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:48,041]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:51,043]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:51,044]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:19:54,047]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:19:57,053]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:00,056]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:03,063]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:06,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:09,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:12,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:15,076]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:18,084]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:21,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:24,093]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:20:24,101]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:27,097]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:27,097]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:20:30,101]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:30,101]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:20:33,109]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:36,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:39,113]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:39,114]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:20:42,118]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:20:42,129]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:45,122]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:48,126]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:51,130]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:51,131]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:20:54,134]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:20:57,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:00,147]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:21:00,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:03,151]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:06,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:06,155]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:09,159]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:09,160]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:21:12,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:12,163]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:15,168]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:18,171]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:21,176]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:21:27,176]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:33,180]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:36,184]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:21:39,188]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:42,192]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:42,194]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:45,201]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:48,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:48,205]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:21:51,209]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:21:51,210]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:54,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:21:57,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:00,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:00,221]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:22:03,226]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:22:03,230]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:06,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:09,238]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:22:09,239]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:12,242]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:15,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:15,247]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:22:18,252]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:21,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:24,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:27,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:30,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:33,279]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:36,285]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:39,287]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:42,293]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:45,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:48,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:51,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:54,325]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:22:57,336]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:00,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:03,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:06,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:09,374]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:12,383]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:15,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:18,406]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:21,409]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:24,421]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:27,427]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:30,442]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:33,453]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:36,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:36,458]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:23:39,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:42,466]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:42,466]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:23:45,470]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:23:45,471]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:48,476]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:51,478]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:51,480]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:23:54,485]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:57,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:23:57,487]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:00,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:03,495]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:03,496]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:06,500]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:09,503]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:12,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:12,508]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:15,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:18,516]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:21,520]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:24,520]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:27,524]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:30,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:33,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:33,533]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:24:36,538]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:39,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:39,542]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:42,545]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:24:42,546]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:45,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:48,553]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:48,555]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:51,566]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:54,569]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:24:54,571]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:24:57,574]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:24:57,575]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:00,578]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:03,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:06,590]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:06,591]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:25:09,595]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:09,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:12,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:15,603]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:21,607]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:24,611]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:24,612]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:25:27,615]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:30,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:30,619]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:33,623]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:33,623]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:25:36,628]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:36,629]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:39,632]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:42,636]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:45,640]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:45,641]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:25:48,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:48,644]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:51,648]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:54,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:25:54,653]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:25:57,657]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:00,665]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:03,669]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:06,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:06,673]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:26:09,677]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:26:09,679]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:12,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:12,681]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:26:15,687]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:18,697]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:21,702]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:24,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:27,711]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:30,714]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:26:30,715]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:33,719]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:26:33,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:36,722]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:39,727]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:26:39,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:42,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:45,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:48,754]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:51,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:54,765]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:26:57,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:00,775]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:03,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:06,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:09,784]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:12,791]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:15,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:18,798]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:21,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:24,809]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:27:24,810]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:27,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:30,817]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:30,817]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:27:33,825]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:27:33,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:36,831]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:39,833]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:42,843]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:45,846]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:48,854]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:51,858]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:54,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:27:57,870]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:00,875]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:28:00,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:03,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:06,891]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:09,895]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:09,895]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:28:12,906]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:15,903]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:28:33,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:36,920]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:39,925]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:42,928]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:42,930]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:28:45,932]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:45,933]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:28:48,937]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:28:48,938]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:51,941]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:54,954]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:57,957]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:28:57,957]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:29:00,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:03,965]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:06,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:09,974]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:12,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:15,982]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:18,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:21,990]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:25,000]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:28,002]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:28,003]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:29:31,008]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:34,011]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:37,015]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:37,015]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:29:40,020]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:43,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:43,024]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:29:46,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:49,031]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:49,032]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:29:52,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:55,040]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:29:58,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:01,052]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:04,056]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:04,058]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:30:07,064]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:10,065]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:10,070]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:13,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:16,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:19,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:19,077]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:22,081]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:25,085]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:25,085]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:30:28,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:28,089]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:30:31,094]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:31,106]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:34,109]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:37,114]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:37,114]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:40,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:43,122]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:46,126]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:46,134]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:49,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:52,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:55,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:30:55,148]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:30:58,151]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:30:58,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:01,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:04,159]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:07,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:07,163]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:10,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:13,172]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:13,172]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:16,176]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:19,180]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:22,184]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:22,184]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:31:25,188]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:25,188]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:31:28,192]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:28,192]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:31,196]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:34,200]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:34,201]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:37,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:40,209]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:43,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:43,217]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:46,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:46,221]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:31:49,225]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:49,225]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:31:52,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:55,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:58,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:31:58,238]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:01,242]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:04,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:04,248]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:07,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:07,250]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:32:10,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:13,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:13,258]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:16,262]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:19,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:19,268]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:22,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:25,275]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:28,279]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:31,283]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:31,283]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:34,287]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:34,287]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:32:37,291]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:37,291]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:32:40,295]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:40,297]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:43,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:46,304]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:49,308]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:49,308]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:52,312]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:55,316]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:32:55,316]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:32:58,321]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:32:58,322]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:01,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:04,329]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:04,330]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:33:07,334]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:10,337]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:10,337]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:33:13,341]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:33:13,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:16,345]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:19,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:22,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:25,358]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:25,358]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:33:28,362]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:33:28,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:31,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:31,367]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:33:34,377]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:37,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:40,382]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:43,387]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:33:43,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:46,391]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:49,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:52,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:55,403]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:33:58,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:01,417]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:04,419]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:07,425]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:10,428]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:13,435]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:16,440]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:19,444]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:34:19,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:22,449]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:34:22,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:25,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:25,453]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:34:28,457]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:31,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:34,465]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:34:34,471]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:37,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:40,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:40,474]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:34:43,478]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:34:43,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:46,481]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:46,482]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:34:49,486]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:52,490]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:55,494]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:34:55,495]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:58,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:34:58,498]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:35:01,505]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:04,506]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:04,508]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:35:07,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:10,515]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:13,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:16,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:19,534]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:22,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:25,545]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:28,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:31,552]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:34,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:37,565]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:40,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:43,575]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:46,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:49,598]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:52,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:55,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:35:58,609]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:01,615]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:04,617]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:07,626]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:10,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:10,630]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:36:13,636]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:16,642]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:19,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:22,654]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:25,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:28,662]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:31,667]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:36:31,668]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:34,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:37,675]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:37,675]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:36:40,680]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:43,683]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:46,690]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:49,694]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:52,699]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:55,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:36:58,712]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:36:58,714]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:01,717]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:04,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:04,721]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:37:07,724]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:37:07,725]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:10,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:10,729]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:37:13,732]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:16,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:16,737]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:37:19,742]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:22,745]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:25,749]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:37:25,750]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:28,753]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:31,757]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:31,759]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:37:34,762]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:37:34,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:37,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:40,770]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:40,771]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:37:43,777]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:46,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:49,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:52,790]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:55,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:37:58,803]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:01,809]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:04,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:07,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:10,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:13,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:16,835]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:19,841]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:22,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:25,849]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:28,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:31,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:34,860]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:37,867]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:40,869]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:43,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:46,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:49,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:52,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:55,899]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:38:58,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:01,908]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:04,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:07,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:10,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:13,928]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:16,930]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:19,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:22,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:22,943]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:39:25,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:25,947]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:39:28,951]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:31,955]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:34,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:37,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:40,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:43,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:46,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:46,976]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:39:49,980]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:39:49,981]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:52,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:55,992]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:39:55,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:39:58,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:02,001]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:40:02,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:05,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:08,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:11,019]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:14,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:17,025]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:20,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:20,029]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:40:23,033]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:26,038]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:26,038]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:40:29,046]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:32,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:35,056]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:38,059]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:41,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:44,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:47,071]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:50,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:53,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:56,086]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:40:59,091]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:02,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:05,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:08,105]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:11,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:14,115]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:17,120]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:20,125]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:23,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:23,129]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:41:26,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:29,136]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:29,138]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:41:32,142]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:35,145]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:35,145]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:41:38,149]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:41:38,150]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:41,153]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:41,153]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:41:44,159]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:47,161]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:50,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:53,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:56,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:41:59,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:02,186]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:02,186]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:42:05,190]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:42:05,191]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:08,194]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:08,195]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:42:11,200]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:14,207]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:17,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:17,213]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:42:20,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:23,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:26,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:26,219]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:42:29,224]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:32,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:32,229]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:42:35,234]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:38,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:38,236]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:42:41,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:44,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:44,246]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:42:47,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:50,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:53,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:56,262]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:42:59,265]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:02,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:05,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:08,277]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:43:08,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:11,285]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:14,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:17,294]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:20,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:23,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:23,302]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:43:26,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:29,315]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:32,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:32,320]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:43:35,323]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:43:35,324]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:38,327]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:41,332]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:44,335]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:44,336]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:43:47,340]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:50,345]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:53,347]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:56,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:43:59,356]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:02,361]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:05,364]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:08,374]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:11,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:14,382]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:17,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:20,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:23,397]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:26,402]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:29,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:32,412]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:35,417]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:38,426]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:41,430]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:44,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:44,435]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:44:47,439]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:50,442]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:44:50,443]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:53,446]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:44:53,447]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:56,453]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:44:59,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:02,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:05,463]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:08,471]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:11,475]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:14,482]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:17,483]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:20,489]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:23,492]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:26,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:38,509]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:45:41,508]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:45:47,517]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:47,517]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:45:50,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:53,525]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:53,525]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:45:56,530]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:45:59,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:02,537]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:46:02,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:05,542]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:46:05,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:08,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:11,550]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:11,552]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:46:14,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:17,558]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:20,562]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:46:20,563]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:23,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:26,570]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:26,571]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:46:29,575]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:46:29,576]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:32,579]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:32,579]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:46:35,585]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:38,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:41,637]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:44,640]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:47,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:47,645]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:46:50,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:53,656]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:53,656]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:46:56,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:46:59,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:02,669]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:05,672]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:08,676]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:08,677]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:47:11,682]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:14,685]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:17,693]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:17,693]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:47:20,699]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:23,701]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:26,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:29,709]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:32,717]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:35,722]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:38,730]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:41,734]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:44,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:47,742]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:47,744]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:47:50,747]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:47:50,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:53,751]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:53,751]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:47:56,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:47:59,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:02,763]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:05,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:05,767]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:08,772]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:11,775]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:11,777]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:48:14,780]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:14,783]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:17,784]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:20,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:20,788]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:23,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:26,800]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:29,805]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:48:29,806]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:32,809]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:32,816]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:35,813]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:48:35,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:38,820]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:41,821]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:47,825]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:50,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:53,835]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:56,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:56,839]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:48:59,846]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:48:59,846]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:49:02,850]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:02,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:05,854]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:08,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:11,863]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:20,863]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:26,871]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:49:29,875]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:32,879]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:32,879]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:35,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:35,884]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:49:38,888]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:38,888]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:41,892]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:44,900]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:47,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:47,905]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:49:50,908]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:50,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:53,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:56,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:49:56,917]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:49:59,921]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:02,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:02,934]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:50:05,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:08,943]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:11,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:14,952]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:17,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:20,960]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:23,962]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:26,969]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:29,970]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:32,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:35,978]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:38,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:41,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:44,993]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:47,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:51,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:54,003]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:50:57,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:00,015]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:03,025]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:06,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:06,028]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:51:09,032]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:51:09,040]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:12,044]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:15,048]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:18,052]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:18,053]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:51:21,056]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:21,057]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:51:24,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:27,065]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:27,066]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:51:30,071]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:33,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:36,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:39,081]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:39,083]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:51:42,086]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:51:42,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:45,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:48,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:48,094]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:51:51,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:54,102]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:54,103]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:51:57,106]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:51:57,106]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:52:00,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:00,112]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:52:03,116]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:06,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:09,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:12,131]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:15,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:18,139]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:21,151]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:24,151]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:27,162]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:30,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:33,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:36,172]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:39,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:42,180]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:45,187]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:48,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:51,196]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:54,201]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:52:57,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:00,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:03,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:06,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:09,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:12,230]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:15,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:18,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:21,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:24,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:27,252]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:30,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:33,263]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:36,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:36,268]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:53:39,271]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:53:39,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:42,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:45,287]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:53:45,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:48,291]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:51,296]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:53:51,296]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:54,300]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:53:54,303]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:53:57,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:00,308]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:03,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:06,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:09,329]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:12,332]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:15,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:18,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:21,347]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:24,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:27,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:30,364]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:33,367]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:36,370]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:39,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:42,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:45,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:48,386]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:51,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:54,394]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:54:57,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:00,403]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:03,409]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:06,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:09,417]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:12,419]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:15,429]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:18,432]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:18,432]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:55:21,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:24,440]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:27,444]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:30,448]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:30,448]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:55:33,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:36,456]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:36,458]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:55:39,461]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:55:39,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:42,465]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:45,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:48,476]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:55:57,478]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:00,482]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:03,486]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:56:03,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:06,490]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:06,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:09,499]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:12,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:12,503]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:56:15,506]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:15,518]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:18,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:21,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:21,528]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:24,531]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:27,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:27,535]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:56:30,542]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:33,543]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:36,543]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:39,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:42,556]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:42,557]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:56:45,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:48,565]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:51,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:51,569]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:56:54,572]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:56:54,578]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:56:57,588]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:00,592]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:03,597]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:06,601]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:57:06,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:09,605]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:57:09,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:12,609]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:15,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:18,620]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:21,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:24,631]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:27,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:30,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:33,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:36,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:39,654]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:42,659]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:57:42,674]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:45,662]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:48,667]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:48,667]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:57:51,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:51,671]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:57:54,675]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:57:54,676]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:57:57,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:00,693]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:03,695]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:06,702]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:09,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:12,710]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:15,712]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:18,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:21,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:24,726]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:27,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:30,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:33,741]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:36,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:39,749]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:42,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:45,757]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:48,765]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:51,770]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:54,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:58:57,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:00,786]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:00,786]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:59:03,790]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:03,792]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:59:06,794]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:06,794]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 05:59:09,798]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:12,806]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:15,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:18,816]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:21,819]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:24,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:27,831]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:30,842]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:33,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:36,856]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:39,860]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:42,868]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 05:59:42,869]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:45,874]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:48,876]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:51,880]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:51,881]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 05:59:54,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:57,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 05:59:57,889]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:00:00,893]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:00,905]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:03,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:06,914]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:06,915]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:09,917]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:12,921]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:15,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:18,930]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:18,931]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:21,934]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:00:21,935]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:24,938]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:24,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:27,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:30,946]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:33,950]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:33,951]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:36,955]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:39,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:42,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:45,967]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:48,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:51,975]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:51,975]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:00:54,979]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:00:54,981]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:00:57,984]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:00,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:00,988]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:01:03,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:06,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:06,996]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:01:10,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:13,004]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:16,008]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:16,009]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:01:19,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:22,017]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:22,017]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:01:25,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:28,025]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:28,026]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:01:31,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:34,033]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:37,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:37,038]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:01:40,042]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:43,046]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:43,047]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:01:46,050]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:01:46,051]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:49,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:52,061]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:55,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:55,064]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration DEPLOYMENTS :: Shared resources deployments :: LABVAULT {id=Test_EnvLabvault, internal id=bt1069}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:01:58,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:01,072]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:04,075]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:07,085]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:10,087]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:13,091]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:02:13,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:16,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:19,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:19,101]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:02:22,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:25,112]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:02:25,112]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:28,117]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:31,120]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:31,121]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:02:34,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:37,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:37,129]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:02:40,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:43,136]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:43,138]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:02:46,142]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:49,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:52,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:55,161]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:55,161]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:02:58,166]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Temporary tests :: Test SVN checkout {id=Maintenance_TemporaryTests_TestSvnCheckout, internal id=bt1193}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:02:58,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:01,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:04,173]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:04,175]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:03:07,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:10,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:10,182]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:03:13,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:16,194]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:19,199]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:22,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:22,203]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:03:25,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:28,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:28,213]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:03:31,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:34,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:34,219]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:03:37,225]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:03:37,226]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:46,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:49,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:52,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:55,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:03:55,248]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:03:58,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:01,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:04,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:07,270]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:10,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:13,278]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:16,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:19,286]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:22,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:25,298]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:28,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:28,302]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:04:31,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:34,310]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:37,315]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:40,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:40,319]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:04:43,322]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:04:43,323]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:46,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:49,330]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:49,331]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:04:52,337]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:55,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:04:58,343]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:04:58,356]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:01,359]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:04,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:04,363]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:07,367]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:05:07,369]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:10,373]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:13,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:13,377]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:16,380]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:19,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:19,384]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:05:22,388]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:22,389]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:25,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:28,396]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:31,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:31,401]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:34,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:34,406]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:05:37,409]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:40,413]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:40,413]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:43,417]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:46,423]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:49,425]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:49,427]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:05:52,431]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:55,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:05:55,434]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:05:58,442]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:01,446]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:04,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:04,451]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:07,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:07,454]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:06:10,459]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:13,463]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:13,464]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:06:16,471]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:16,474]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:19,475]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:22,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:22,479]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:25,483]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:28,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:31,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:31,491]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:34,499]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:34,500]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:06:37,506]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:40,508]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:43,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:43,512]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:46,516]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:06:46,517]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:49,520]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:06:49,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:52,524]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:55,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:06:55,529]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:06:58,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:01,537]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:07:01,538]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:04,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:07,550]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:10,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:10,555]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:07:13,557]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:16,561]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:16,561]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:07:19,566]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:22,570]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:25,574]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:28,578]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:28,578]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:07:31,582]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:07:31,583]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:34,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:34,588]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:07:37,593]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:40,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:43,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:46,607]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:49,618]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:52,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:55,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:07:58,627]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:01,633]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:04,636]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:07,642]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:10,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:13,651]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:16,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:19,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:22,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:25,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:28,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:31,680]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:34,685]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:37,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:40,693]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:43,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:46,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:49,710]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:52,718]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:55,723]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:58,726]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:08:58,728]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:09:01,730]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:01,732]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:09:04,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:07,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:10,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:10,748]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:09:13,751]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:16,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:19,763]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:22,768]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:25,771]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:25,773]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:09:28,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:31,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:34,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:37,794]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:40,796]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:43,808]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:46,812]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:49,821]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:52,825]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:52,825]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:09:55,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:09:55,829]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:09:58,833]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:01,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:04,841]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:04,842]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:10:07,845]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:10,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:13,854]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:16,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:19,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:22,866]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:25,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:28,874]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:31,882]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:34,887]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:37,892]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:40,895]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:43,903]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:46,903]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:49,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:52,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:55,917]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:10:58,920]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:01,924]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:04,932]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:07,936]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:10,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:13,945]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:11:13,946]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:16,949]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:16,949]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:11:19,955]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:22,961]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:25,969]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:28,973]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:28,974]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:11:31,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:31,978]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:11:34,982]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:37,986]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:37,987]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:11:40,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:44,003]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:47,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:50,012]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:53,015]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:56,019]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:59,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:11:59,025]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:12:02,031]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:12:02,032]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:05,035]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:08,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:11,047]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:14,051]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:17,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:20,065]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:23,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:26,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:29,076]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:32,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:35,084]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:38,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:41,093]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:44,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:47,101]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:50,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:53,113]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:56,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:12:59,122]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:02,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:05,134]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:08,139]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:11,142]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:14,149]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:17,154]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:20,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:23,167]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:13:23,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:26,175]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:29,179]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:32,183]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:32,183]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:13:35,187]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:35,187]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:13:38,191]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:38,193]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:13:41,197]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:44,200]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:44,200]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:13:47,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:50,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:50,209]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:13:53,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:56,216]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:13:56,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:13:59,221]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:13:59,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:02,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:05,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:08,241]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:14:08,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:11,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:14,253]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:14,254]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:14:17,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:20,261]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:23,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:26,274]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:29,279]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:32,282]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:14:32,283]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:35,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:38,294]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:41,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:44,311]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:47,311]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:50,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:53,323]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:56,329]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:14:59,331]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:02,337]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:05,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:08,346]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:11,348]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:14,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:17,356]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:20,364]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:23,368]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:26,374]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:29,377]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:32,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:35,389]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:38,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:41,397]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:44,403]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:47,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:50,415]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:53,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:53,418]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:15:56,422]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:15:56,425]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:15:59,426]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:16:08,427]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:16:11,431]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:16:17,439]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:20,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:23,447]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:23,448]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:16:26,451]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:29,455]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:29,457]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:16:32,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:35,464]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:35,464]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:16:38,468]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:41,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:44,477]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:47,480]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:50,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:53,493]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:56,505]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:16:59,509]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:02,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:05,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:08,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:11,530]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:14,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:17,538]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:20,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:23,546]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:26,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:29,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:32,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:35,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:38,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:41,575]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:44,582]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:47,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:50,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:53,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:56,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:17:59,604]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:02,610]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:05,612]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:08,616]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:11,620]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:11,620]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:18:14,624]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:18:14,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:17,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:20,633]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:20,634]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:18:23,637]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:26,641]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:29,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:32,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:35,654]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:18:35,655]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:38,658]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:18:38,659]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:41,662]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:44,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:47,674]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:50,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:53,682]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:56,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:18:59,690]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:02,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:05,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:08,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:11,711]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:14,717]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:17,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:20,725]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:23,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:26,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:29,740]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:32,749]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:35,752]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:38,758]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:41,760]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:44,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:47,769]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:50,779]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:53,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:56,787]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:19:59,789]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:02,796]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:05,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:08,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:11,810]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:11,810]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:20:14,815]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:17,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:17,819]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:20:20,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:23,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:23,827]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:20:26,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:29,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:29,840]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:20:32,847]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:35,847]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:20:41,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:41,855]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:20:44,863]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:20:44,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:47,868]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:50,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:53,880]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:53,881]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:20:56,884]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:20:59,888]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:20:59,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:02,892]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:02,894]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:21:05,897]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:08,905]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:08,905]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:21:11,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:14,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:14,914]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:21:17,917]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:21:17,918]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:20,921]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:23,929]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:26,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:29,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:32,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:32,942]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:21:35,946]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:21:35,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:38,950]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:41,954]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:44,958]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:44,958]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:21:47,964]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:50,967]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:53,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:56,975]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:21:56,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:21:59,979]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:02,987]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:22:02,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:05,991]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:05,992]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:22:08,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:12,000]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:22:12,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:15,004]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:18,008]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:21,012]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:24,016]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:24,017]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:22:27,020]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:27,020]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:22:30,024]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:30,025]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:22:33,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:33,029]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:22:36,033]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:39,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:42,041]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:42,041]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:22:45,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:48,051]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:51,053]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:54,059]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:22:57,064]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:00,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:03,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:06,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:09,081]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:12,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:15,088]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:18,091]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:21,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:24,103]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:27,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:30,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:33,117]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:36,120]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:39,126]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:42,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:45,136]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:45,136]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:23:48,141]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:23:48,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:51,144]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:54,148]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:23:54,149]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:23:57,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:00,157]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:24:00,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:03,161]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:06,169]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:24:06,170]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:09,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:12,181]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:15,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:18,193]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:21,201]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:24,206]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:27,212]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:30,214]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:33,231]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:36,234]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:39,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:42,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:45,249]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:48,251]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:51,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:54,259]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:24:57,265]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:00,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:03,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:06,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:09,282]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:12,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:15,290]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:18,292]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:21,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:24,305]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:27,310]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:30,313]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:33,317]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:25:33,319]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:36,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:39,325]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:25:39,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:42,330]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:25:42,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:45,334]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:48,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:51,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:54,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:25:57,346]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:25:57,348]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:00,350]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:03,355]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:03,356]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:06,360]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:09,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:12,367]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:12,368]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:15,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:18,375]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:21,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:21,379]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:26:24,384]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:24,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:27,388]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:26:27,389]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:30,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:33,396]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:33,401]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:36,404]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:39,409]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:39,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:42,412]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:45,421]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:26:45,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:48,425]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:48,437]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:51,429]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:54,433]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:26:54,433]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:26:57,437]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:00,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:03,446]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:27:03,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:06,450]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:27:06,451]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:09,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:09,454]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:27:12,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:15,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:18,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:21,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:24,474]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:27,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:30,490]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:33,495]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:36,499]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:39,503]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:42,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:42,507]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:27:45,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:48,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:48,525]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:27:51,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:54,532]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:54,532]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:27:57,536]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:27:57,536]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:00,540]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:03,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:03,544]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:28:06,548]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:09,552]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:09,553]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:12,557]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:15,561]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:18,565]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:18,565]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:21,569]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:24,573]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:24,573]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:28:27,577]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:27,577]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:28:30,581]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:30,582]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:33,585]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:36,590]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:39,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:39,594]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:42,598]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:45,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:45,602]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:48,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:48,608]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:28:51,610]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:54,614]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:28:54,615]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:28:57,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:00,623]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:00,624]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:29:03,627]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:29:03,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:06,631]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:09,643]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:12,647]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:12,649]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:29:15,652]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:29:15,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:18,656]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:21,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:21,660]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:29:24,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:27,672]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:30,676]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:29:30,678]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:33,681]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:29:33,686]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:36,685]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:29:42,689]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:42,689]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:29:45,693]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:48,697]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:51,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:54,705]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:29:57,709]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:00,716]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:03,718]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration DEPLOYMENTS :: Shared resources deployments :: LABKEYSTORE {id=Test_EnvLabkeystore, internal id=bt1068}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:03,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:06,722]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:09,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:12,730]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:15,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:18,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:21,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:21,744]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:30:24,751]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:24,751]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:30:27,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:27,755]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:30:30,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:33,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:36,775]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:39,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:42,784]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:45,788]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:48,792]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:30:48,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:51,840]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:30:51,841]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:54,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:30:54,846]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:30:57,849]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:00,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:03,857]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:03,857]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:06,861]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:09,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:09,866]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:12,869]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:12,869]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:31:15,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:18,878]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:18,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:21,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:24,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:24,886]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:31:27,890]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:30,894]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:30,895]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:31:33,898]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:33,899]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:36,902]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:39,906]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:42,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:42,912]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:31:45,915]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:45,915]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:48,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:51,923]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:51,923]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:31:54,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:31:57,931]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:00,939]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:00,943]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:03,944]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:32:03,944]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:06,948]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:06,949]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:09,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:12,956]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:15,960]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:15,960]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:18,964]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:21,968]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:21,969]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:24,973]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:27,981]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:32:27,981]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:30,985]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:30,986]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:32:33,989]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:33,997]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:37,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:40,005]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:40,005]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:32:43,009]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:46,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:46,023]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:32:49,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:52,031]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:55,034]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:32:58,040]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:01,042]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:04,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:07,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:10,058]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:13,063]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:16,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:19,071]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:22,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:25,083]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:28,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:31,092]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:34,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:37,100]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:40,106]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:43,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:46,112]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:49,117]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:33:49,118]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:52,121]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:33:52,129]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:55,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:33:58,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:01,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:01,141]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:34:04,145]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:34:04,146]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:07,149]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:10,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:13,162]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:16,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:19,170]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:22,179]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:25,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:28,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:31,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:34,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:37,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:40,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:43,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:46,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:49,223]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:52,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:55,231]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:34:58,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:01,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:04,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:07,248]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:35:07,249]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:10,253]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:13,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:16,260]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:16,261]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:35:19,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:22,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:22,270]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:35:25,274]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:28,277]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:35:28,278]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:31,281]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:35:31,294]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:34,297]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:37,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:37,302]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:35:40,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:43,314]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:43,314]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:35:46,319]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:49,322]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:52,326]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:35:52,327]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:55,331]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:35:55,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:35:58,334]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:01,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:01,339]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:04,343]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:07,355]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:10,359]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:10,361]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:13,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:16,367]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:19,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:22,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:22,377]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:36:25,380]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:25,381]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:28,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:31,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:31,388]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:36:34,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:37,397]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:37,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:40,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:40,401]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:36:43,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:43,406]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:46,409]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:49,413]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:52,417]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:52,417]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:36:55,422]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:36:55,430]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:36:58,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:01,438]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:37:01,439]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:04,442]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:07,446]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:07,446]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:37:10,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:13,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:16,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:16,458]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:37:19,462]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:37:19,464]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:22,466]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:25,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:28,481]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:31,483]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:37:31,484]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:34,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:37,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:37,492]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:37:40,499]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:40,499]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:37:43,503]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:46,508]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:37:46,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:49,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:52,516]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:52,516]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:37:55,522]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:58,524]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:37:58,526]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:38:01,529]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:38:01,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:04,532]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:07,537]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:07,538]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:38:10,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:13,545]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:16,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:19,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:22,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:25,561]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:28,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:31,570]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:34,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:37,590]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:40,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:43,598]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:46,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:49,607]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:52,612]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:55,615]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:38:58,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:01,627]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:04,633]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:07,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:10,639]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:13,645]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:16,650]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:19,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:22,662]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:25,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:28,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:31,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:34,680]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:37,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:40,689]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:43,693]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:46,697]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:46,699]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:39:49,705]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:49,706]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:39:52,710]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:39:52,711]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:55,714]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:39:55,714]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:39:58,757]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:01,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:04,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:07,770]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:40:07,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:10,774]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:13,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:13,779]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:40:16,783]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:19,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:22,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:25,803]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:28,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:31,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:34,817]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:37,820]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:37,820]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:40:40,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:43,836]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:46,844]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:40:46,848]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:49,848]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:40:49,849]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:52,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:52,852]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:40:55,858]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:40:58,869]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:01,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:01,873]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:41:04,877]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:41:04,885]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:07,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:10,885]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:13,891]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:16,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:19,898]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:19,898]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:41:22,902]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:25,906]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:25,907]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:41:28,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:31,914]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:34,918]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:37,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:40,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:40,927]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:41:43,931]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:43,931]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:41:46,935]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:46,936]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:41:49,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:52,943]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:52,943]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:41:55,948]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:41:55,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:41:58,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:01,972]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:01,972]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:04,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:07,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:10,984]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:42:10,985]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:13,988]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:13,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:16,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:19,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:19,998]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:23,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:26,005]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:26,005]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:42:29,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:32,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:32,015]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:42:35,017]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:35,025]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:38,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:41,025]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:41,026]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:44,030]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:47,034]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:50,038]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:50,038]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:53,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:53,050]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:42:56,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:42:56,056]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:42:59,060]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:02,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:05,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:08,075]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:11,080]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:14,083]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:17,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:20,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:23,104]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:26,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:29,112]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:32,116]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:32,117]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:43:35,120]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:43:35,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:38,124]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:41,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:44,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:47,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:47,138]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:43:50,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:53,145]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:53,145]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:43:56,154]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:43:59,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:02,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:05,168]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:08,170]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:11,179]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:14,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:17,186]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:20,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:20,191]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:44:23,194]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:26,198]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:26,199]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:44:29,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:32,207]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:35,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:35,211]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:44:38,216]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:41,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:44,223]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:47,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:50,232]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:53,237]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:56,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:44:59,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:02,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:05,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:08,260]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:11,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:14,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:17,279]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:20,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:23,286]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:26,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:29,297]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:32,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:35,310]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:38,314]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:38,315]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:45:41,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:44,322]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:47,326]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:45:47,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:50,331]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:45:50,331]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:53,335]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:53,335]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:45:56,340]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:59,347]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:45:59,348]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:46:02,351]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:02,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:05,355]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:08,359]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:08,359]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:11,364]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:14,368]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:17,372]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:17,372]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:20,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:23,380]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:23,382]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:46:26,384]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:46:26,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:29,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:29,388]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:32,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:35,396]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:38,401]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:38,401]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:46:41,405]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:41,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:46:47,409]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:46:53,410]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:47:02,422]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:47:02,423]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:05,426]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:47:05,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:08,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:11,442]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:11,442]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:47:14,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:17,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:20,456]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:23,463]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:26,467]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:29,471]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:47:29,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:32,475]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:47:32,476]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:35,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:38,484]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:47:38,487]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:47:44,488]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:47:59,504]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:02,509]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:05,513]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:05,513]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:48:08,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:11,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:11,522]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:48:14,526]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:17,529]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:20,534]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:48:20,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:23,540]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:26,542]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:29,546]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:29,546]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:48:32,550]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:48:32,551]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:35,558]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:38,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:41,566]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:44,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:47,575]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:47,575]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:48:50,581]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:53,585]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:56,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:48:59,597]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:02,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:05,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:08,608]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:11,615]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:14,616]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:17,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:20,628]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:20,630]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:49:23,633]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:26,637]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:26,637]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:49:29,641]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:49:29,642]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:32,645]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:35,649]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:49:35,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:38,661]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:41,665]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:41,665]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:49:44,670]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:49:44,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:47,676]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:50,678]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:50,678]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:49:53,686]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:56,690]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:49:56,692]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:49:59,694]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:49:59,695]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:02,699]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:05,702]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:08,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:08,708]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:50:11,711]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:50:11,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:14,715]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:17,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:20,723]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:23,723]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:26,727]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:29,732]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:32,736]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:35,741]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:38,744]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:41,748]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:41,748]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:50:44,752]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:47,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:47,764]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:50:50,769]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:50:50,770]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:53,773]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:56,777]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:50:59,781]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:50:59,782]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:02,785]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:02,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:05,806]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:08,809]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:11,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:11,814]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:51:14,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:14,818]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:17,822]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:20,830]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:23,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:26,838]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:51:26,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:29,843]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:29,850]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:32,847]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:51:32,847]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:35,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:35,851]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:38,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:41,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:44,864]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:44,875]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:47,867]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:47,867]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:51:50,871]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:50,872]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:53,877]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:56,880]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:51:59,884]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:51:59,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:02,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:05,908]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:05,908]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:08,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:11,919]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:14,921]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:14,924]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:17,926]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:20,929]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:20,929]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:23,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:26,937]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:26,937]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:52:29,941]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:29,941]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:32,945]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:52:32,946]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:35,950]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:38,954]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:38,954]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:41,958]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:44,962]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:44,962]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:52:47,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:50,970]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:53,974]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:53,975]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:52:56,979]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:52:56,979]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:52:59,983]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:02,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:05,991]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:05,991]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:08,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:08,995]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:53:12,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:15,007]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:15,008]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:18,011]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:21,016]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:21,016]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:53:24,020]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:24,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:27,024]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:30,028]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:53:30,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:33,033]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:36,036]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:36,037]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:39,040]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:42,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:42,045]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:45,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:48,053]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:53:48,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:51,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:51,058]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:53:54,061]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:53:57,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:00,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:03,078]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:54:03,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:06,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:09,086]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:09,086]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:54:12,091]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:15,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:18,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:18,098]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:54:21,103]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:54:21,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:24,107]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:27,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:27,111]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:54:30,115]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:33,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:36,123]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:36,123]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:54:39,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:42,131]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:42,132]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:54:45,136]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:54:45,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:48,140]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:51,146]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:54,148]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:54:54,148]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:54:57,153]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:00,156]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:00,156]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:03,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:06,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:09,173]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:55:09,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:12,177]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:12,179]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:15,185]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:15,186]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:18,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:21,193]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:24,198]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:24,209]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:27,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:27,202]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:55:30,206]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:30,206]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:33,212]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:39,214]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:55:42,218]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:42,219]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:45,223]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:48,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:48,227]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:55:51,232]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:54,235]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:55:54,236]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:55:57,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:00,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:03,247]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:03,249]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:56:06,252]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:56:06,263]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:09,268]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:12,272]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:15,276]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:56:15,277]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:18,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:18,281]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:56:21,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:24,288]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:27,292]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:30,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:30,301]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:56:33,309]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:56:33,313]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:36,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:36,317]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:56:39,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:39,323]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:56:42,328]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:45,333]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:48,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:51,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:54,346]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:57,350]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:56:57,350]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:57:00,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:03,358]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:06,363]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:09,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:09,367]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:57:12,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:15,377]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:18,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:21,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:24,387]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:57:24,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:27,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:30,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:33,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:33,400]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:57:36,404]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:57:36,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:39,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:42,416]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:45,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:48,426]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:51,428]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:54,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:57:57,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:00,446]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:03,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:06,459]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:09,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:12,467]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:15,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:18,477]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:21,482]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:24,490]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:27,494]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:30,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:30,500]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:58:33,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:36,510]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:36,511]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:58:39,515]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:42,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:42,520]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:58:45,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:48,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:51,532]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:58:51,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:54,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:57,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:58:57,540]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:59:00,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:00,544]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:03,548]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:06,552]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:06,553]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:09,556]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:12,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:15,565]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:15,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:18,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:18,569]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:59:21,573]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:21,573]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:24,577]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:27,581]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:30,585]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:30,585]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:33,589]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:33,590]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 06:59:36,593]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:39,597]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:39,599]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:42,604]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:45,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:45,606]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 06:59:48,610]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:48,610]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:51,614]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:54,618]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 06:59:54,620]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 06:59:57,624]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:00,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:03,639]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:06,643]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration TEST BUILDS :: Silvercore :: QA test builds :: UISCQA {id=Silvercore_QaTestBuilds_Uiscqa, internal id=bt940}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:06,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:09,647]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:12,651]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration TEST BUILDS :: Silvercore :: TRUNK test builds :: UISCTRUNK {id=Silvercore_TrunkTestBuilds_Uisctrunk, internal id=bt848}: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:12,653]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:15,655]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:18,661]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:21,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:24,669]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:27,672]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:30,676]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:33,680]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:00:33,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:36,684]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:39,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:42,692]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:45,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:48,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:51,705]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:54,711]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:00:57,713]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:00,723]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:03,725]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:06,731]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:09,736]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:12,741]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:15,746]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:18,757]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:21,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:24,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:27,771]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:27,771]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:01:30,783]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:01:30,784]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:33,787]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:33,787]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:01:36,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:39,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:39,797]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:01:42,805]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:45,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:48,812]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:51,816]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:51,816]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:01:54,820]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:01:57,824]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:01:57,825]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:00,829]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:03,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:03,834]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:06,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:09,840]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:12,845]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:12,845]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:15,849]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:18,853]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:21,857]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:21,857]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:24,861]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:24,861]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:02:27,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:27,867]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:02:30,870]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Temporary tests :: Test SVN checkout {id=Maintenance_TemporaryTests_TestSvnCheckout, internal id=bt1193}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:30,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:33,874]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:39,878]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:39,878]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:42,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:45,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:45,888]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:02:48,891]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:48,898]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:51,896]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:54,899]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:02:54,899]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:02:57,904]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:00,907]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:00,908]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:03:03,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:06,915]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:09,920]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:03:09,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:12,924]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:03:18,929]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:21,932]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:21,932]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:03:24,936]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:27,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:27,942]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:03:30,944]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:03:30,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:33,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:36,957]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:39,961]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:03:39,962]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:42,965]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:03:42,974]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:45,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:48,981]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:51,986]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:03:51,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:54,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:03:54,990]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:03:57,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:00,998]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:04,002]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:04,004]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:04:07,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:07,006]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:04:10,010]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:04:10,012]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:13,014]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:16,018]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:19,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:22,027]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:22,027]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:04:25,031]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:25,031]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:04:28,035]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:04:28,043]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:31,039]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:34,043]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:34,044]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:04:37,047]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:40,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:43,060]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:46,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:49,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:52,072]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:55,078]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:04:58,080]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:01,086]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:04,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:07,093]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:10,100]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:13,107]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:16,109]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:19,115]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:22,118]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:25,125]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:28,130]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:31,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:34,142]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:05:34,150]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:37,146]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:40,150]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:43,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:43,155]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:05:46,159]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:46,159]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:05:49,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:52,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:52,208]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:05:55,211]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:05:55,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:05:58,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:01,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:01,220]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:06:04,224]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:07,228]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:10,232]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:06:10,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:13,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:13,236]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:06:16,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:19,245]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:06:19,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:22,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:25,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:28,261]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:31,261]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:34,265]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:37,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:37,269]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:06:40,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:43,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:46,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:46,282]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:06:49,294]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:52,298]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:06:52,299]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:55,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:58,306]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:06:58,306]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:01,314]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:07,315]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:10,319]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:13,323]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:13,324]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:16,327]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:07:16,328]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:19,331]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:22,335]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:25,339]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:07:25,340]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:28,344]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:28,344]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:31,348]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:34,352]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:34,353]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:07:37,356]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:37,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:40,360]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:43,369]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:46,372]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:46,374]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:07:49,377]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:49,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:52,381]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:55,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:07:55,385]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:07:58,390]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:01,393]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:01,394]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:08:04,399]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:07,401]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:10,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:10,406]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:08:13,410]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:08:13,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:16,414]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:19,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:22,425]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:25,426]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:25,428]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:08:28,431]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:08:28,432]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:31,434]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:31,435]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:08:34,439]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:37,447]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:40,453]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:43,455]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:43,455]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:08:46,459]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:08:46,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:49,463]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:49,465]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:08:52,468]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:55,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:58,476]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:08:58,478]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:09:01,480]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:01,481]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:09:04,488]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:07,492]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:09:07,493]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:10,496]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:13,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:16,509]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:19,513]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:19,513]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:09:22,517]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:09:22,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:25,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:28,525]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:31,529]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:09:31,530]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:34,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:34,535]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:09:37,538]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:40,542]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:40,542]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:09:43,546]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:46,550]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:49,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:52,558]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:55,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:09:55,563]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:09:58,567]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:09:58,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:01,571]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:04,575]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:07,579]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:07,579]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:10:10,583]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:10:10,584]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:13,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:16,599]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:19,604]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:19,604]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:10:22,608]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:25,612]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:25,613]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:10:28,616]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:28,616]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:10:31,622]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:34,624]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:37,631]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:40,637]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:43,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:46,645]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:10:46,657]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:49,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:49,649]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:10:52,653]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:52,654]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:10:55,657]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:58,661]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:10:58,663]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:11:01,668]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:04,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:07,679]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:10,682]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:13,692]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:16,694]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:19,701]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:22,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:25,713]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:28,715]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:31,727]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:34,731]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:34,731]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:11:37,735]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:37,735]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:11:40,744]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:43,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:46,748]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:46,749]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:11:49,754]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:52,756]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:55,760]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:55,760]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:11:58,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:11:58,764]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:12:01,769]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:04,773]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:04,773]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:07,777]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:10,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:10,782]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:12:13,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:13,785]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:16,789]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:19,793]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:22,797]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:22,797]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:12:25,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:28,806]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:28,806]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:31,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:34,814]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:34,814]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:37,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:37,818]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:12:40,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:43,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:43,827]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:46,830]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:49,835]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:49,836]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:52,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:55,843]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:12:55,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:12:58,847]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:12:58,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:01,851]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:04,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:04,856]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:13:07,859]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:10,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:13,868]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:13,868]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:13:16,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:19,876]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:22,880]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:25,884]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:13:25,885]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:28,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:31,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:31,893]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:13:34,897]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:34,897]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:13:37,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:40,905]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:43,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:43,910]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:13:46,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:46,913]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:13:49,918]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:13:49,919]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:52,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:55,926]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:58,930]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:13:58,932]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:14:01,938]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:04,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:07,946]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:10,951]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:14:10,952]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:13,955]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:13,956]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:14:16,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:19,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:22,967]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:25,973]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:28,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:31,984]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:14:31,984]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:34,988]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:34,989]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:14:37,992]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:40,996]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:40,996]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:14:44,000]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:44,000]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:14:47,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:50,008]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:53,017]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:56,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:14:56,021]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:14:59,025]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:14:59,026]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:02,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:02,030]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:15:05,034]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:08,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:11,041]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:15:11,042]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:14,046]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:15:14,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:17,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:20,070]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:20,070]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:15:23,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:26,078]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:29,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:29,083]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:15:32,086]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:32,086]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:15:35,090]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:38,096]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:41,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:44,104]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:47,107]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:50,114]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:53,115]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:56,127]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:15:59,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:02,140]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:16:02,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:05,144]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:05,144]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:16:08,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:11,156]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:14,161]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:17,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:17,165]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:16:20,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:23,173]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:23,173]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:16:26,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:29,185]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:32,189]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:16:32,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:35,193]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:16:35,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:38,199]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:41,201]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:44,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:47,210]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:50,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:53,222]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:56,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:16:59,230]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:02,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:05,239]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:08,247]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:11,247]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:14,254]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:17,255]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:20,262]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:23,267]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:26,277]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:29,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:29,281]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:17:32,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:35,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:38,292]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:38,294]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:17:41,297]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:17:41,298]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:44,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:47,305]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:47,306]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:17:50,311]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:53,313]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:56,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:17:59,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:02,330]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:05,333]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:08,340]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:11,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:14,348]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:17,350]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:20,362]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:23,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:26,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:29,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:32,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:35,387]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:38,393]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:41,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:44,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:47,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:50,413]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:53,416]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:56,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:18:59,424]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:02,428]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:05,432]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:05,433]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:19:08,437]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:19:08,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:11,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:14,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:17,449]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:17,449]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:19:20,456]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:23,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:26,467]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:29,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:32,475]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:35,478]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:38,488]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:41,490]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:44,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:47,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:47,502]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:19:50,507]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:19:50,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:53,511]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:56,515]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:19:56,515]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:19:59,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:02,523]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:20:02,524]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:05,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:05,528]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:20:08,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:11,543]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:14,548]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:17,552]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:17,552]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:20:20,556]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:23,560]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:26,564]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:26,565]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:20:29,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:32,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:35,577]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:35,578]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:20:38,584]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:41,593]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:44,599]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:47,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:50,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:50,613]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:20:53,621]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:56,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:20:56,626]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:20:59,630]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:02,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:05,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:08,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:11,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:14,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:17,655]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:20,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:23,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:26,668]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:29,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:32,677]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:35,679]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:38,685]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:41,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:44,694]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:47,696]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:50,701]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:53,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:56,712]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:21:59,712]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:02,724]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:05,729]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:08,733]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:08,733]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:22:11,737]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:14,741]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:14,741]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:22:17,747]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:20,750]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:22:20,750]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:23,754]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:22:23,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:26,758]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:29,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:32,770]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:35,774]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:35,775]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:22:38,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:41,783]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:44,787]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:44,787]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:22:47,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:50,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:53,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:56,805]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:22:59,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:02,819]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:05,819]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:08,830]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:11,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:14,837]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:17,840]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:20,846]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:23,848]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:26,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:29,857]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:32,863]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:35,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:38,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:41,877]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:44,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:47,885]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:50,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:53,898]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:56,908]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:23:59,910]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:02,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:05,918]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:08,925]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:11,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:14,931]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:17,935]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:20,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:20,939]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:24:23,943]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:24:23,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:26,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:29,952]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:24:29,952]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:32,956]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:24:32,957]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:35,960]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:35,961]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:24:38,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:41,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:44,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:47,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:47,982]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:24:50,984]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:53,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:56,993]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:56,993]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:24:59,997]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:24:59,998]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:25:03,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:03,001]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:25:06,005]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:09,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:12,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:12,015]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:25:15,026]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:18,033]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:21,036]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:24,038]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:27,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:30,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:33,058]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:36,062]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:36,063]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:25:39,067]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:25:39,068]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:42,071]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:42,071]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:25:45,083]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:48,088]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:51,091]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:51,091]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:25:54,096]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:57,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:25:57,100]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:26:00,105]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:03,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:06,117]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:09,121]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:12,124]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:15,130]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:18,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:21,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:24,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:27,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:30,149]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:33,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:36,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:39,169]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:42,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:45,179]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:48,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:51,189]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:54,194]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:26:57,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:00,207]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:27:00,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:03,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:06,215]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:27:06,215]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:09,219]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:27:09,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:12,223]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:15,231]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:18,239]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:21,243]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:21,243]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:27:24,252]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:27,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:30,260]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:30,260]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:27:33,264]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:33,264]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:27:36,268]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:39,272]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:42,282]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:45,285]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:27:45,286]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:48,290]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:51,293]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:51,293]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:27:54,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:27:57,303]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:00,305]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:03,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:06,322]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:09,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:12,330]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:12,331]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:28:15,334]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:18,338]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:18,338]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:28:21,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:24,347]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:27,350]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:30,355]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:30,355]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:28:33,359]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:33,359]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:28:36,364]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:39,367]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:39,367]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:28:42,371]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:28:42,372]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:45,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:48,380]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:28:48,386]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:51,384]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:54,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:57,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:28:57,392]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:29:00,399]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:03,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:06,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:09,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:12,413]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:15,423]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:18,425]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:21,430]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:24,433]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:27,443]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:30,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:33,451]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:36,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:39,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:42,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:45,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:45,502]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:29:48,506]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:29:48,508]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:51,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:54,514]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:57,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:29:57,519]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:30:00,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:03,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:06,531]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:06,531]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:30:09,535]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:30:09,537]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:12,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:15,544]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:30:15,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:18,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:21,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:24,568]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:27,573]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:30,576]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:33,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:36,588]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:39,599]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:42,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:45,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:48,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:51,622]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:30:51,623]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:54,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:57,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:30:57,634]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:31:00,638]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:31:00,646]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:03,650]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:03,650]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:31:06,654]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:09,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:09,658]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:31:12,663]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:15,666]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:15,668]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:31:18,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:21,676]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:24,679]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:27,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:30,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:33,698]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:36,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:39,710]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:42,716]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:45,723]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:48,728]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:51,734]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:54,736]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:31:57,744]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:00,748]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:03,753]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:06,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:09,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:12,769]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:15,779]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:18,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:21,790]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:24,794]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:24,795]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:32:27,799]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:30,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:30,802]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:32:33,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:36,810]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:36,811]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:32:39,814]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:32:39,815]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:42,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:42,819]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:32:45,824]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:48,827]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:48,827]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:32:51,831]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:54,835]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:32:54,835]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:32:57,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:00,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:03,847]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:03,849]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:33:06,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:09,856]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:12,860]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:15,860]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:18,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:21,868]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:24,874]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:27,876]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:27,878]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:33:30,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:33,893]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:36,897]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:39,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:39,901]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:33:42,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:45,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:45,910]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:33:48,920]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:51,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:54,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:33:57,931]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:00,934]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:03,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:06,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:09,949]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:12,951]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:15,957]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:18,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:21,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:24,971]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:27,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:30,979]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:33,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:36,992]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:39,998]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:43,000]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:46,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:49,008]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:52,019]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:55,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:34:58,025]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:34:58,026]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:01,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:04,033]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:35:04,041]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:07,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:07,037]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:35:10,041]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:13,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:13,046]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:35:16,051]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:19,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:19,054]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:35:22,058]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:25,070]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:28,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:31,078]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:31,079]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:35:34,082]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:34,082]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:35:37,087]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:35:37,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:40,091]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:43,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:43,095]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:35:46,099]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:49,103]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:52,108]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:35:52,119]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:55,111]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:55,111]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:35:58,116]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:35:58,116]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:36:01,123]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:07,124]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:36:13,128]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:13,128]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:36:16,132]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:36:16,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:19,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:22,141]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:22,142]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:36:25,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:28,149]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:28,149]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:36:31,154]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:34,157]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:34,159]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:36:37,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:40,165]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:43,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:46,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:46,179]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:36:49,186]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:52,186]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:55,192]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:36:58,194]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:01,201]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:04,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:07,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:10,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:13,216]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:16,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:19,225]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:22,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:25,237]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:28,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:31,245]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:34,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:37,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:40,260]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:43,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:46,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:49,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:52,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:55,289]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:37:58,289]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:37:58,301]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:01,293]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:04,297]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:07,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:07,302]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:38:10,306]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:38:10,307]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:13,312]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:16,318]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:19,324]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:22,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:25,335]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:28,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:31,345]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:34,351]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:37,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:40,359]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:43,373]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:46,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:49,379]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:52,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:55,390]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:38:58,392]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:01,402]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:04,404]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:07,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:10,412]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:13,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:16,421]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:19,427]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:22,429]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:25,435]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:28,437]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:31,447]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:34,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:34,451]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:39:37,454]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:40,458]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:43,462]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:46,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:39:49,471]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:39:55,471]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:40:01,475]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:40:04,479]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:07,485]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:10,491]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:13,500]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:40:13,501]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:16,504]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:16,515]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:19,508]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:22,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:22,512]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:25,516]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:28,520]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:31,525]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:31,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:34,529]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:40:37,529]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:43,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:43,533]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:40:46,537]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:46,537]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:40:49,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:52,551]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:55,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:40:58,564]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:01,570]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:04,574]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:07,578]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:41:07,579]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:10,584]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:13,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:13,586]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:41:16,591]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:19,595]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:19,595]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:41:22,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:25,603]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:28,615]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:31,619]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:34,623]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:37,627]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:37,629]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:41:40,637]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:43,640]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:43,640]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:41:46,644]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:49,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:52,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:52,652]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:41:55,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:41:58,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:01,665]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:01,667]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:42:04,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:07,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:10,679]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:13,681]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:16,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:19,689]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:22,697]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:25,698]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:28,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:31,706]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:34,714]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:37,714]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:40,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:43,722]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:46,729]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:49,731]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:52,741]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:55,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:42:58,751]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:42:58,752]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:01,755]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:01,757]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:43:04,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:07,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:07,764]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:43:10,768]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:43:10,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:13,772]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:16,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:19,780]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:43:19,781]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:22,785]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:43:22,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:25,790]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:28,793]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:28,793]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:43:31,797]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:43:31,809]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:34,813]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:37,817]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:37,817]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:43:40,821]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:43,826]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:43:43,827]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:46,831]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:49,834]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:52,842]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:55,846]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:43:58,854]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:01,858]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:04,862]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:07,866]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:07,867]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:44:10,871]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:44:10,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:13,877]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:16,879]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:19,883]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:22,887]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:44:22,888]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:25,891]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:28,896]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:28,896]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:44:31,900]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:44:31,900]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:34,909]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:37,908]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:44:43,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:46,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:46,916]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:44:49,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:52,927]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:55,929]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:44:58,934]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:01,937]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:04,942]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:07,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:10,951]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:13,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:16,959]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:19,962]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:22,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:25,970]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:28,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:31,978]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:34,984]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:37,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:40,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:43,995]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:47,003]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:50,003]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:53,007]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:53,008]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:45:56,012]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:45:56,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:45:59,016]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:02,021]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:05,024]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:08,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:08,029]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:46:11,032]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:46:11,034]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:14,036]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:17,045]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:20,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:20,050]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:46:23,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:26,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:29,067]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:32,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:35,073]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:38,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:41,092]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:44,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:47,105]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:50,106]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:53,112]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:56,114]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:46:59,120]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:02,123]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:05,129]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:08,131]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:11,138]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:14,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:17,150]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:20,155]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:23,161]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:26,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:29,171]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:32,176]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:35,182]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:38,184]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:41,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:44,193]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:47,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:50,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:53,213]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:47:53,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:56,217]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:59,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:47:59,221]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:48:02,225]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:05,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:05,234]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:48:08,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:11,242]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:11,244]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:48:14,247]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:17,250]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:17,250]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:48:20,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:26,259]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:48:29,259]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:48:38,259]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:48:41,263]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:44,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:47,271]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:47,272]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:48:50,276]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:53,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:56,284]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:48:56,284]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:48:59,290]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:02,292]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:02,292]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:05,296]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:05,296]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:49:08,302]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:11,305]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:11,306]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:14,310]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:17,313]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:17,315]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:49:20,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:23,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:23,321]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:26,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:29,337]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:29,338]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:49:32,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:35,346]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:35,346]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:38,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:41,354]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:41,355]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:44,358]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:49:44,359]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:47,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:50,367]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:56,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:49:56,371]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:49:59,375]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:49:59,376]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:02,381]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:05,383]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:08,387]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:08,387]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:50:11,392]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:50:11,395]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:14,400]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:17,405]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:20,408]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:23,414]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:26,420]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:29,424]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:32,428]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:32,430]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:50:35,433]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:38,437]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:38,437]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:50:41,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:44,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:44,445]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:50:47,449]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:50:47,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:50,453]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:50,454]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:50:53,457]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:56,461]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:59,466]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:50:59,467]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:51:02,470]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:02,470]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:05,474]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:08,478]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:08,480]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:11,482]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:14,492]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:17,495]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:17,506]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:20,499]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:23,503]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:23,504]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:51:26,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:29,511]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:29,511]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:32,516]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:35,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:35,519]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:51:38,523]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:38,524]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:41,528]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:44,532]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:47,536]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:50,540]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:51:50,541]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:53,548]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:56,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:51:59,557]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:02,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:05,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:08,569]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:11,578]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:14,581]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:14,581]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:17,585]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:17,585]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:52:20,589]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:20,591]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:23,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:26,598]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:29,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:29,602]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:32,606]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:32,606]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:52:35,610]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:38,614]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:38,615]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:41,620]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:44,623]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:44,624]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:52:47,627]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:47,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:50,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:53,635]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:53,635]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:52:56,640]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:59,643]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:52:59,645]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:53:02,648]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:05,652]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:08,656]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:08,656]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:53:11,660]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:11,660]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:53:14,664]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:17,668]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:53:17,669]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:20,673]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:23,676]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:26,682]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:29,685]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:53:29,685]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:32,689]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:53:32,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:35,697]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:53:35,698]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:38,701]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:41,705]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:53:41,711]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:44,722]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:47,726]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:47,728]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:53:50,734]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:53:50,735]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:53,738]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:56,749]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:53:59,750]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:02,756]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:05,767]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:08,766]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:11,777]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:14,779]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:17,784]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:20,787]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:23,793]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:26,795]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:29,802]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:32,808]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:35,814]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:38,816]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:41,823]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:44,828]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:47,832]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:50,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:53,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:56,849]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:54:59,855]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:02,857]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:05,864]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:08,865]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:11,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:14,874]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:17,882]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:20,886]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:23,890]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:23,890]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:55:26,894]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:55:26,895]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:29,898]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:29,898]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:55:32,903]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:35,907]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:38,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:41,915]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:55:41,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:44,922]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:47,923]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:50,929]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:53,936]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:55:53,936]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:56,940]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:55:59,944]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:02,948]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:05,952]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:56:05,956]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:11,957]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:56:26,961]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:26,961]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:56:29,973]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:32,977]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:35,987]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:38,990]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:41,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:44,998]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:44,998]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:56:48,002]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:51,007]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:54,013]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:56:57,018]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:00,023]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:00,023]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:57:03,029]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:06,031]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:09,037]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:12,042]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:15,043]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:18,051]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:21,052]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:24,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:27,060]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:30,067]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:33,072]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:36,078]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:39,080]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:42,086]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:45,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:48,095]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:51,097]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:54,101]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:57:54,103]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:57:57,105]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:00,109]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:00,110]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:03,118]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:58:03,118]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:06,123]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:09,126]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:09,126]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:12,132]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:15,134]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:15,135]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:18,139]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:21,142]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:24,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:27,151]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:27,151]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:58:30,155]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:30,163]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:33,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:33,167]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:58:36,171]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:36,171]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:39,177]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:42,179]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:45,187]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:48,192]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:48,192]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:58:51,196]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:54,200]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:58:54,201]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:58:57,206]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:00,208]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:03,212]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:03,214]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:59:06,218]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:09,221]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:09,221]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:59:12,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:15,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:18,241]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:21,245]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:21,245]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 07:59:24,253]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:27,254]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:59:33,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:33,258]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 07:59:36,262]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:36,262]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 07:59:39,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:42,272]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:45,274]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:48,281]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:51,283]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:54,288]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 07:59:57,291]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:00,296]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:03,299]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:06,305]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:09,307]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:12,317]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:15,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:18,326]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:21,328]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:24,334]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:27,336]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:30,342]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:33,345]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:36,352]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:39,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:42,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:45,369]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:48,374]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:00:48,375]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:51,378]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:54,382]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:00:54,382]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:00:57,388]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:00,390]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:03,399]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:06,402]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:06,402]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:01:09,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:12,410]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:12,412]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:01:15,415]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:18,419]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:18,419]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:01:21,426]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:24,431]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:27,435]   WARN -   jetbrains.buildServer.SERVER - Schedule Trigger error in configuration MAINTENANCE :: Temporary tests :: Test SVN checkout {id=Maintenance_TemporaryTests_TestSvnCheckout, internal id=bt1193}: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:27,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:30,441]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:33,443]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:36,450]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:39,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:42,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:45,464]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:48,468]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:51,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:51,473]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:01:54,476]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:01:54,477]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:01:57,484]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:00,485]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:02:09,489]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:12,493]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:15,497]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:18,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:21,506]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:24,510]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:24,510]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:02:27,514]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:30,522]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:33,526]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:33,528]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:02:36,530]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:02:36,531]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:39,534]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:39,535]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:02:42,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:45,543]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:45,544]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:02:48,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:51,551]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:54,555]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:02:54,564]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:57,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:02:57,569]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:03:00,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:00,572]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:03:03,577]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:06,580]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:09,586]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:12,588]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:15,594]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:18,596]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:21,602]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:24,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:27,610]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:30,613]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:33,620]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:36,625]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:39,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:42,634]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:45,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:48,642]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:48,642]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:03:51,646]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:03:51,647]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:54,650]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:03:54,651]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:03:57,656]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:00,658]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:00,659]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:04:03,662]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:06,671]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:09,675]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:09,676]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:04:12,679]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:04:12,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:15,683]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:18,687]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:21,691]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:21,693]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:04:24,696]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:04:24,697]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:27,700]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:30,704]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:33,709]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:36,712]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:39,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:42,720]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:45,732]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:48,733]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:51,743]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:54,745]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:04:57,750]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:00,753]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:03,759]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:06,761]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:09,768]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:12,770]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:15,776]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:18,778]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:21,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:24,790]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:27,796]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:30,799]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:33,807]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:36,811]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:39,817]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:42,819]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:45,825]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:48,828]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:51,838]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:54,840]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:05:57,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:00,848]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:00,848]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:06:03,852]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:06:03,853]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:06,856]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:09,860]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:09,861]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:06:12,867]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:15,872]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:18,877]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:21,881]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:24,885]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:24,886]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:06:27,889]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:27,889]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:06:30,901]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:33,905]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:36,913]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:39,914]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:39,914]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:06:42,918]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:45,922]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:06:45,923]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:48,928]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:51,937]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:54,939]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:06:57,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:00,947]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:03,963]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:06,963]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:07:12,964]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:07:24,968]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:24,968]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:07:27,972]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:07:27,973]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:30,976]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:33,980]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:36,986]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:39,989]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:42,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:45,998]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:49,001]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:52,006]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:55,009]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:07:58,015]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:01,018]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:04,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:07,030]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:10,036]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:13,038]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:16,049]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:19,054]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:22,059]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:22,059]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:08:25,063]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:25,063]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:08:28,067]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:31,071]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:34,075]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:34,075]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:08:37,079]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:40,084]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:43,088]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:08:43,089]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:46,092]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:46,092]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:08:49,098]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:52,100]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:52,102]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:08:55,104]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:08:58,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:01,117]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:04,121]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:09:04,122]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:07,125]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:07,125]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:09:10,133]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:13,137]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:13,139]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:09:16,141]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:09:16,145]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:19,149]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:22,153]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:25,158]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:28,162]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:28,163]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:09:31,166]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:09:31,167]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:34,170]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:09:34,171]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:37,174]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:40,178]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:43,183]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:09:43,198]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:46,187]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:46,187]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:09:49,191]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:49,192]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:09:52,195]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:55,199]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:58,203]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:09:58,203]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:10:01,208]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:01,219]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:04,227]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:07,232]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:10,232]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:13,236]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:13,236]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:16,240]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:19,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:22,248]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:22,248]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:10:25,252]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:28,257]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:28,258]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:31,261]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:31,261]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:10:34,265]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:34,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:37,269]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:40,273]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:43,277]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:43,285]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:46,283]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:49,285]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:49,287]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:10:52,290]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:10:52,290]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:55,294]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:58,298]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:10:58,298]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:01,303]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:04,306]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:13,307]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:22,321]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:25,323]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:25,323]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:11:28,327]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:28,328]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:11:31,332]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:31,332]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:34,336]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:37,340]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:40,344]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:40,344]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:43,348]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:11:43,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:46,352]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:46,354]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:11:49,357]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:52,360]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:55,365]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:55,366]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:11:58,369]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:11:58,369]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:01,373]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:04,377]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:04,377]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:07,381]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:10,385]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:13,389]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:13,390]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:16,394]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:16,394]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:12:19,398]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:19,398]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:22,402]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:25,414]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:25,415]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:12:28,418]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:31,422]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:31,424]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:34,427]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:37,431]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:37,431]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:12:40,435]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:40,436]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:43,439]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:46,448]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:49,451]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:12:49,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:52,455]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:52,456]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:12:55,459]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:58,464]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:12:58,465]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:13:01,468]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:04,472]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:07,476]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:13:07,485]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:10,488]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:10,489]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:13:13,492]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:13,493]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:13:16,497]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:19,504]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:22,509]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:25,514]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:28,519]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:31,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:34,531]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:37,533]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:40,539]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:43,542]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:46,549]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:49,554]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:52,558]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:55,562]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:13:55,562]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:13:58,567]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:01,571]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:01,571]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:14:04,579]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:07,579]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:13,583]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:13,583]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:14:16,587]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:16,587]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:19,593]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:22,596]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:25,600]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:28,604]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:14:28,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:31,608]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:31,609]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:34,612]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:37,617]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:37,618]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:40,621]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:43,624]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:43,625]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:14:46,629]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:46,629]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:49,633]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:49,633]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:14:52,638]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:55,641]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:14:55,641]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:14:58,647]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:01,649]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:04,658]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:15:04,670]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:07,674]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:10,678]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:10,678]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:15:13,682]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:16,688]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:19,690]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:19,691]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:15:22,694]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:22,695]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:15:25,699]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:28,703]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:31,707]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:15:31,708]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:34,714]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:37,719]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:40,731]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:43,735]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:46,746]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:49,748]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:52,753]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:55,756]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:15:58,762]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:01,764]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:04,772]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:07,777]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:10,783]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:13,785]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:16,792]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:19,797]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:22,803]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:25,805]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:28,814]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:31,818]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:31,818]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:16:34,822]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:34,822]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:16:37,826]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:40,830]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:40,830]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:16:43,835]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:46,839]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:16:46,839]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:49,844]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:52,847]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:55,852]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:16:58,858]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:01,863]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:04,873]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:07,875]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:07,876]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:17:10,884]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:13,884]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:16,888]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:19,892]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:19,892]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:17:22,900]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:22,900]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:17:25,904]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:17:25,906]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:28,909]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:17:28,916]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:31,912]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:34,917]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:34,917]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:17:37,921]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:40,925]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:40,925]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:17:43,933]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:46,937]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:49,945]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:52,953]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:55,962]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:17:58,966]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:01,975]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:04,978]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:07,982]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:18:07,990]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:10,994]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:10,994]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:18:14,002]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:17,010]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:26,011]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:18:29,011]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:29,012]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:18:32,015]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:18:32,016]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:35,019]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:38,028]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:38,028]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:18:41,032]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:44,036]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:44,036]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:18:47,043]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:50,044]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:53,050]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:56,055]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:18:59,057]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:02,066]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:05,069]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:08,074]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:11,077]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:14,083]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:17,085]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:20,092]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:23,094]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:26,100]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:29,102]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:32,108]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:35,110]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:38,116]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:41,118]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:44,126]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:47,131]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:50,135]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:50,135]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:19:53,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:56,143]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:59,147]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:19:59,148]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:20:02,152]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:02,153]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:20:05,156]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:08,160]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:11,164]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:11,165]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:20:14,171]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:17,184]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:20,190]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:23,192]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:26,202]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:29,205]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:32,211]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:35,213]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:38,229]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:41,233]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:44,238]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:44,238]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:20:47,244]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:50,246]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:53,251]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:56,256]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:20:59,258]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:02,264]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:05,266]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:08,272]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:11,275]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:14,280]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:17,283]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:20,292]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:23,296]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:23,296]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:21:26,300]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:29,304]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:29,304]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:21:32,309]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:35,312]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:38,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:41,320]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:44,327]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:47,332]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:50,339]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:53,341]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:56,347]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:21:59,349]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:02,353]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:05,358]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:22:05,365]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:08,361]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:08,362]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:22:11,366]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:11,367]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:22:14,370]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:22:14,371]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:17,383]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:20,386]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:23,390]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:23,392]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:22:26,397]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:29,398]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:29,399]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:22:32,407]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:35,411]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:35,411]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:22:38,416]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:41,419]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:44,427]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:47,431]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:50,438]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:53,440]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:56,445]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:22:59,448]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:02,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:05,452]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:23:08,452]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:11,457]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:23:11,460]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:14,465]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:14,465]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:23:17,469]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:20,473]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:20,473]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:23:23,479]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:26,481]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:26,482]   WARN - ide.impl.AgentStatusRestorer$1 - Failed to execute restore agent enabled status. Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:103)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.restoreAgentsEnabledStatusesIfNeeded(AgentPersistenceFacade.java:278)
	at jetbrains.buildServer.serverSide.impl.AgentStatusRestorer$1.run(AgentStatusRestorer.java:1)
	at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:40)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 48 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 42 more
[2014-08-04 08:23:29,485]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:29,486]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:23:32,489]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:35,494]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:35,494]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:23:38,498]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:41,502]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:41,503]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
[2014-08-04 08:23:44,507]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:47,512]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:50,514]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:53,521]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:56,527]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:23:59,532]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:02,535]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:05,544]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:08,547]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:11,553]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:14,555]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:17,561]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:20,564]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:23,570]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:26,572]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:29,578]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:32,580]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:35,588]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:38,592]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:41,601]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:44,605]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:47,609]  ERROR - etbrains.buildServer.HEARTBEAT - Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
[2014-08-04 08:24:47,609]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Taking a connection from the data source
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at jetbrains.buildServer.serverSide.db.DBFunctions.create(DBFunctions.java:172)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:824)
	at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.runAndRetry(TeamCityDatabaseManager.java:801)
	at jetbrains.buildServer.serverSide.db.DBFacade.runAndRetry(DBFacade.java:300)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.writeToDatabaseIfNo(StatusInfo.java:0)
	at jetbrains.buildServer.serverSide.impl.StatusInfo.<init>(StatusInfo.java:38)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:562)
	at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:231)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:10)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:705)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:24)
	at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:41)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:47)
	at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java:2)
	at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:85)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:24)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
	at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$933a35f1.executeWithInactiveCleanup(<generated>)
	at jetbrains.buildServer.serverSide.impl.QueueFlushImpl.flushQueue(QueueFlushImpl.java:7)
	at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:95)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 58 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 52 more
[2014-08-04 08:24:50,613]  ERROR -   jetbrains.buildServer.SERVER - Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 
jetbrains.buildServer.serverSide.db.DatabaseIsNotReachableException: Could not connect to MySQL server.
SQL error when doing: Rollback
SQL exception: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor258.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
	at jetbrains.buildServer.serverSide.db.jdbcLoader.JdbcDataSource.getConnection(JdbcDataSource.java:60)
	at org.springframework.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:83)
	at jetbrains.buildServer.serverSide.db.MySQL.MySqlDataSource.getConnection(MySqlDataSource.java:27)
	at jetbrains.buildServer.serverSide.db.TeamCityBasicDataSource$JdbcConnectionFactory.createConnection(TeamCityBasicDataSource.java:74)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at jetbrains.buildServer.serverSide.db.ReliablePoolingDataSource.getConnection(ReliablePoolingDataSource.java:47)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
	at $Proxy21.getAutoCommit(Unknown Source)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:101)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils$2.run(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:62)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rollback(DBInternalUtils.java:98)
	at jetbrains.buildServer.serverSide.db.DBFunctions.rollback(DBFunctions.java:2124)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:290)
	at jetbrains.buildServer.serverSide.db.queries.GenericQuery.executeUpdate(GenericQuery.java:136)
	at jetbrains.buildServer.serverSide.impl.AgentPersistenceFacade.setBindingTimestamp(AgentPersistenceFacade.java:74)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.persistCommTimestamp(XmlRpcBasedAgent.java:66)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.setCommunicationTimestamp(XmlRpcBasedAgent.java:76)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent$AgentTargetProxy.call(XmlRpcBasedAgent.java:314)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.pingInternal(XmlRpcBasedAgent.java:159)
	at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.ping(XmlRpcBasedAgent.java:142)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgent.ping(SecuredBuildAgent.java:47)
	at jetbrains.buildServer.serverSide.impl.BuildAgentManagerImpl.pingAllAgents(BuildAgentManagerImpl.java:37)
	at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildAgentManager.pingAllAgents(SecuredBuildAgentManager.java:9)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:22)
	at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:12)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	... 49 more
Caused by: java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306)
	... 43 more
